import React from "react";
import {
  HashRouter,
  Switch,
  Route
}  from "react-router-dom";
import StoreList from"./page/StoreList";
import AllCart from"./page/AllCart";

class Router extends React.Component{
  render(){
    return(
      <HashRouter>
        <Switch>
          <Route path="/AllCart" component={AllCart}/>
          <Route path="/" component={StoreList}/>
        </Switch>
      </HashRouter>
    );
  }
}

export default Router;